{template 'common/header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{$_W['styles']['indexbgcolor']};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{background:#3a4148;}
	.box .box2{float:left; display:block; width:33.3%; height:100px; line-height:100px; text-align:center;}
	.box .box-item{display:block; text-decoration:none; outline:none; text-align:center; width:80px; height:80px; margin:10px auto; overflow:hidden; border-radius:100%; color:#FFF;padding:10px;}
	.box .box-item i{display:block;  font-size:35px; height:60%; vertical-align:middle; color:#FFF; overflow:hidden;}
	.box .box-item img{display:block; height:60%; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; display:block; height:20px; line-height:20px; font-size:14px; text-align:center; overflow:hidden;}
	.list,h3,p{padding:0px; margin:0px;}
	.list li{padding: 0 5px; list-style:none;}
	.list li a{display:block; height:71px; padding:5px;background:-webkit-linear-gradient(#ffffff 0%,#dfdfdf 100%);background:-moz-linear-gradient(top,#ffffff 0%,#dfdfdf 100%); border-radius:3px; border-bottom:#c8c8c8 solid 1px; margin-top:5px; color:#333; overflow:hidden; text-decoration:none !important; position:relative;}
	.list li a .thumb{width:80px; height:60px;}
	.list li a .title{font-size:14px; padding-left:90px;}
	.list li a .createtime{font-size:12px; color:#999; position:absolute; bottom:5px;padding-left:90px;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" item="nav"}
	{php if($num == 0) $bg = '#aec74b';}
	{php if($num == 1) $bg = '#ffbe5d';}
	{php if($num == 2) $bg = '#fd6b5c';}
	{php if($num == 3) $bg = '#fd5d8e';}
	{php if($num == 4) $bg = '#8a6cc5';}
	{php if($num == 5) $bg = '#63bb65';}
	<div class="box2">
		<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
			{if !empty($nav['icon'])}
			<img src="{$_W['attachurl']}{$nav['icon']}">
			{else}
			<i class="fa {$nav['css']['icon']['icon']} icon" style="{$nav['css']['icon']['style']}"></i>
			{/if}
			<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
		</a>
	</div>
	{php $num++; if($num > 5) $num = 0;}
	{/data}
</div>
{template 'common/slide'}
<!--内容栏-->
<div class="list clearfix">
	{data module="site" func="site_article" cid="$cid" assign="result" return="true"}
	{loop $result['list'] $row}
	<li>
		<a href="{$row['linkurl']}">
			{if $row['thumb']}<img src="{$row['thumb']}" class="pull-left thumb" onerror="this.parentNode.removeChild(this)" />{/if}
			<div class="title">{$row['title']}</div>
			<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
		</a>
	</li>
	{/loop}
</div>
{template 'common/footer'}